<div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">自动回复</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-6">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <ul class="nav nav-tabs" id="myTab">
                              <li class="active"><a href="#home">被添加自动回复</a></li>
                              <li><a href="#profile">关键词自动回复</a></li>
                              <li><a href="#messages">消息自动回复</a></li>
                            </ul> 
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6">
                                    <div class="tab-content">
                                      <div class="tab-pane active" id="home">
                                        <form id="subscribe" action="{:U('User/Index/subscribe')}" method="post" enctype="multipart/form-data">
                                          <input type="hidden" name="id" value="{$reply['id']}">
                                          <div class="form-group">
                                            <label>文字内容</label>
                                            <textarea class="form-control" rows="3" name="content" >{$reply['content']}</textarea>
                                        </div>

                                        <input type="submit" class="btn btn-default" value="提交">
                                        </form>
                                      </div>
                                      <div class="tab-pane" id="profile">
                                          关键字回复内容,该功能暂未开通，敬请期待。
                                      </div>
                                      <div class="tab-pane" id="messages">
                                        <form id="unmatch" action="{:U('User/Index/unmatch')}" method="post">
                                          <div class="form-group">
                                            <label>文字内容</label>
                                            <textarea class="form-control" rows="3" >消息自动回复内容,该功能暂未开通，敬请期待。</textarea>
                                        </div>

                                        <input type="submit" class="btn btn-default" value="提交">
                                        </form>
                                      </div>
                                      
                                    </div> 
                                    
                                </div>
                                <!-- /.col-lg-6 (nested) -->
                               
                            </div>
                            <!-- /.row (nested) -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
        </div>
        <!-- /#page-wrapper -->
    <script>
      $(function () {
        $('#myTab a:last').tab('show');//初始化显示哪个tab
      
        $('#myTab a').click(function (e) {
          e.preventDefault();//阻止a链接的跳转行为
          $(this).tab('show');//显示当前选中的链接及关联的content
        })
      })
    </script> 